package com.xrui.hbase.codec;

import com.xrui.hbase.schema.spec.CellSpec;

import java.io.IOException;

/**
 * Interface for factories of CellEncoder instances.
 */
public interface CellEncoderFactory {
    /**
     * Creates a new cell encoder.
     *
     * @param cellSpec Specification of the cell encoding.
     * @return a new cell encoder.
     * @throws IOException on I/O error.
     */
    CellEncoder create(CellSpec cellSpec) throws IOException;
}
